package com.fhz.day014;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;

import androidx.appcompat.app.AppCompatActivity;

public class MainActivity2 extends AppCompatActivity {
    private FragmentRefreshLayout frl;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main2);

        frl = (FragmentRefreshLayout) findViewById(R.id.frl);
//        try {
//            Thread.sleep(2000);
//        } catch (InterruptedException e) {
//            e.printStackTrace();
//        }
    }

    public static void lunach(Context context,String name){
        Intent intent = new Intent(context, MainActivity2.class);
        intent.putExtra("name",name);
        context.startActivity(intent);
    }

}